<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="signupForm">
                    <input id="userId" name="userId" th:value="${user.userId}"
                           type="hidden">
                    <div class="form-group">
                        <label class="col-sm-3 control-label"><span style="color: #F00;">*</span>昵称：</label>
                        <div class="col-sm-8">
                            <input id="name" name="name" class="form-control" type="text"
                                   th:value="${user.name}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label"><span style="color: #F00;">*</span>用户名：</label>
                        <div class="col-sm-8">
                            <input id="username" name="username" class="form-control"
                                   type="text" th:value="${user.username}" readonly>
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <label class="col-sm-3 control-label">班级：</label>
                        <div class="col-sm-8">
                            <input id="deptId" name="deptId" class="hidden" th:value="${user.deptId}">
                            <input id="deptName" name="deptName"
                                   class="form-control" type="text" style="cursor: pointer;"
                                   onclick="openDept()" readonly="readonly" placeholder="所属班级" th:value="${user.deptName}">
                        </div>
                    </div>-->
                    <!--<div class="form-group">
                        <label class="col-sm-3 control-label">E-mail：</label>
                        <div class="col-sm-8">
                            <input id="email" name="email" class="form-control" type="email"
                                th:value="${user.email}">
                        </div>
                    </div>-->
                    <!--<div class="form-group">
                        <label class="col-sm-3 control-label">用户类型:</label>
                        <div class="col-sm-8">
                            <label class="radio-inline"> <input
                                    th:field="*{user.level}" type="radio" name="level" value="1" />
                                学生
                            </label> <label class="radio-inline"> <input
                                th:field="*{user.level}" type="radio" name="level" value="2" />
                            老师
                        </label>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label">状态:</label>
                        <div class="col-sm-8">
                            <label class="radio-inline"> <input
                                    th:field="*{user.status}" type="radio" name="status" value="1" />
                                正常
                            </label> <label class="radio-inline"> <input
                                th:field="*{user.status}" type="radio" name="status" value="0" />
                            禁用
                        </label>
                        </div>
                    </div>
                    <input type="hidden" name="roleIds" id="roleIds"
                           th:value="${roleIds}">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">角色</label>
                        <div class="col-sm-8">
                            <label th:each="role:${roles}" class="checkbox-inline">
                                <input name="role" type="checkbox" th:value="${role.roleId}"
                                       th:text="${role.roleName}" th:checked="${role.roleSign}">
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-10 col-sm-offset-5">
                            <button type="submit" class="btn btn-primary">提交</button>
                            <button type="button" onclick="closeIndex();" class="btn btn-danger">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/sys/user/edit.js">
</script>
</body>
</html>
